<template lang="pug">
component(:is="c")
</template>

<script lang="coffee">

export default {
  setup: =>
    c = shallowRef()
    do =>
      {hash} = location
      c.value = (await import("./page/#{hash[1..].split('/',1)[0]}.vue")).default
      nextTick E.xing

      #window.addEventListener 'hashchange',load
      return
    {c}
}
</script>

<style lang="stylus">
@import './styl/init.styl'
</style>
